package com.qyhl.webtv.commonlib.entity.question;

import java.io.Serializable;
import java.util.List;

public class QuestionChallengeBean implements Serializable {
    private int recordId;

    private String reward;

    private boolean over;

    private boolean correct;

    private int correctNum;

    private int bestCorrectNum;

    private QuestionBean question;

    private int coin;

    public int getCoin() {
        return coin;
    }

    public void setCoin(int coin) {
        this.coin = coin;
    }

    public int getBestCorrectNum() {
        return bestCorrectNum;
    }

    public void setBestCorrectNum(int bestCorrectNum) {
        this.bestCorrectNum = bestCorrectNum;
    }

    public int getRecordId() {
        return recordId;
    }

    public void setRecordId(int recordId) {
        this.recordId = recordId;
    }

    public QuestionBean getQuestion() {
        return question;
    }

    public void setQuestion(QuestionBean question) {
        this.question = question;
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        this.reward = reward;
    }

    public boolean isOver() {
        return over;
    }

    public void setOver(boolean over) {
        this.over = over;
    }

    public boolean isCorrect() {
        return correct;
    }

    public void setCorrect(boolean correct) {
        this.correct = correct;
    }

    public int getCorrectNum() {
        return correctNum;
    }

    public void setCorrectNum(int correctNum) {
        this.correctNum = correctNum;
    }

    public class QuestionBean implements Serializable {
        private String imgUrl;
        private int id;
        private int type;//1、单选 2、多选 3、填空
        private String content;
        private List<OptionBean> optionList;
        private String correctAnswer;
        /**
         * userAnswer
         * 用户写的答案
         */
        private String userSolution;

        public String getCorrectAnswer() {
            return correctAnswer;
        }

        public void setCorrectAnswer(String correctAnswer) {
            this.correctAnswer = correctAnswer;
        }

        public String getUserSolution() {
            return userSolution;
        }

        public void setUserSolution(String userSolution) {
            this.userSolution = userSolution;
        }

        public String getUserAnswer() {
            return userSolution;
        }

        public void setUserAnswer(String userSolution) {
            this.userSolution = userSolution;
        }

        public String getImgUrl() {
            return imgUrl;
        }

        public void setImgUrl(String imgUrl) {
            this.imgUrl = imgUrl;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public List<OptionBean> getOptionList() {
            return optionList;
        }

        public void setOptionList(List<OptionBean> optionList) {
            this.optionList = optionList;
        }
    }


    public class OptionBean implements Serializable {
        private String imgUrl;
        private String option;
        private int type;
        private String content;
        private int status = 0;
        private boolean isChecked = false;

        public boolean isChecked() {
            return isChecked;
        }

        public void setChecked(boolean checked) {
            isChecked = checked;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getImgUrl() {
            return imgUrl;
        }

        public void setImgUrl(String imgUrl) {
            this.imgUrl = imgUrl;
        }

        public String getOption() {
            return option;
        }

        public void setOption(String option) {
            this.option = option;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }
    }
}
